<?php
	header("Content-Type:text/html;charset=utf-8"); 
	include '../dbConfig/mysqlFun.php';
	$mysqlDB = new mysqlFun();
	$_POST['tableName'] = "carclass";
	$sql = "select * from ".$_POST['tableName'];
	$tableDate = $mysqlDB->getDB()->query($sql);
	$tableField = $mysqlDB->showTableField($_POST['tableName']);
	$tableDateArray = array();
	while($row = mysql_fetch_array($tableDate)){
		foreach($tableField as $value){
			$tableDateArray[$value] = $row[$value];
		}
	}
	$mysqlDB->getDB()->free_result($tableDate);
	$tableDateTxt="";
	foreach($tableDateArray as $key=>$value){
		$tableDate .= $key."=>".$value;
		$tableDate .= "<br>";
	}
	echo $tableDate;
?>
